@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-wrap: wrap;
  background-image: radial-gradient(#f7efef, #9a9e98);
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  width: 600px;
  height: 350px;
  border-radius: 20px;
  transition: .5s all ease;
}

.card .circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card .circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: hsl(340, 100%, 50%);
  clip-path: circle(120px at center);
  transition: .5s all ease-in-out;
}

.card:hover .circle::before {
  clip-path: circle(400px at center);
  background-color: #0065c3;
}

.card img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 300px;
  transform: translate(-50%, -50%);
  transition: .5s all ease;
  pointer-events: none;
}

.card:hover img {
  left: 72%;
  height: 500px;
}

.card .content {
  position: relative;
  padding: 20px;
  padding-left: 40px;
  width: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card:hover .content {
  left: 0;
  opacity: 1;
  visibility: visible;
}

.card .content h2 {
  margin-bottom: 7px;
  font-size: 2em;
  line-height: 1em;
  color: #fff;
  font-weight: 400;
}

.card .content p { color: #fff; }

.card .content a {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  color: #fff;
  background-color: #000;
  text-decoration: none;
  font-weight: 700;
}

.card:nth-child(1):hover .circle::before {
  clip-path: circle(400px at center);
  background-color: hsl(0, 100%, 46%);
}

@media screen and (max-width: 991px) {
  .card {
    align-items: flex-start;
    margin: 13px;
    width: 100%;
    max-width: 350px;
  }

  .card:hover { height: 600px; }

  .card .content {
    width: 100%;
    left: 0;
    padding: 30px; 
  }

  .card:hover img {
    top: 70%;
    left: 50%;
    height: 300px;
  }
}

@media screen and (max-width: 420px) {
  .card .content { padding: 20px; }
}
